package com.aos.erp.common.bean;

/**
 * @program: erp
 * @description: 同步数据返回结果
 * @author: tanzhiyu
 * @create: 2018-11-15 19:36
 **/
public class ResultBean {
    //成功
    public static int CODE_SUCCESS = 0;
    //失败
    public static int CODE_FAIL = 1;

    /**
     * 状态
     */
    private int code;
    /**
     * 消息
     */
    private String errMsg;
    /**
     * 数据
     */
    private Object data;

    private ResultBean() {
    }

    private ResultBean(Object data, String errMsg, int code) {
        this.data = data;
        this.errMsg = errMsg;

        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

}
